www.gusucode.com > 循环自相关函数工具箱源码程序 > matlab代做 修改 程序循环自相关函数工具箱/cyclostationary_toolbox/degree_of_cyclostationarity.m

    function d=degree_of_cyclostationarity(R)
%
% DEGREE_OF_CYCLOSTATIONARITY
%              Compute the degrees of cyclostationarity of a signal
%              from its cyclic autocorrelation
%
% USAGE
%              d=degree_of_cyclostationarity(R)
%              
%              R is the cyclic-autocorrelation of a signal
%              
%              d is a vector containing all degrees of cyclostationarity
%              for integer multiples of the frequency used to obtain R

% File: degree_of_cyclostationarity.m
% Last Revised: 25/11/97
% Created: 25/11/97
% Author: Andrew C. McCormick
% (C) University of Strathclyde

d=sum(abs(R).^2)/sum(abs(R(:,1)).^2);